package com.example.walletdemo.enums;

public enum AppHttpCodeEnum {
    //成功段固定为200
    SUCCESS(200,"操作成功"),
    //参数错误500-1000
    PARAM_INVALID(501,"无效参数"),
    SERVER_ERROR(503,"服务器内部错误");


    int code;
    String errorMessage;

    AppHttpCodeEnum(int code, String errorMessage){
        this.code = code;
        this.errorMessage = errorMessage;
    }

    public int getCode(){
        return this.code;
    }
    public String getErrorMessage(){
        return this.errorMessage;
    }
}
